<?php $view->extend('::frontend/admin/layout.html.php') ?>
<?php $view['slots']->start('content'); ?>
<!-- ================================================================================================================== -->
<div id="center-column">
		<div style="text-align: right;padding-right: 40px;">
		    <a href="<?php echo $view->escape($view['router']->generate('frontendfront_admin_Product_add')); ?>"><h3>Thêm mới sản phẩm</h3></a>
		</div><br />
		<div class="table" style="width: 100%">
			<img src="<?php echo $view->escape($view['assets']->getUrl('images/admin/bg-th-left.gif'));?>" width="8" height="7" alt="" class="left" />
			<img src="<?php echo $view->escape($view['assets']->getUrl('images/admin/bg-th-right.gif'));?>" width="7" height="7" alt="" class="right" />
			<table class="listing" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<th class="first" width="5%">id</th>
					<th width="20%">Title</th>
					<th width="30%">Description</th>
					<th width="30%">Content</th>
					<th width="5%">Edit</th>
					<th width="5%">Deleted</th>
					<th class="last" width="5%">Create Date</th>
				</tr>
			<?php 
	 		if(count($aNews)){
	 			$i = 0;
	 			foreach ($aNews as $value) {
	 		?>
			
				<tr>
					<?php $i += 1; ?>
					<td class="<?php if (($i % 2) == 0) echo 'first style2'; else echo 'first style1'; ?>"><?php echo $value->getId();?></td>
					<td><a href=""><?php echo $value->getTitle();?></a></td>
					<td><?php echo $value->getDescription();?></td>
					<td><?php echo $value->getContent();?></td>
					<td><img src="<?php echo $view->escape($view['assets']->getUrl('images/admin/edit-icon.gif'));?>" width="16" height="16" alt="edit" onclick="javascript:window.location.href='<?php echo $view->escape($view['router']->generate('frontendfront_admin_Product_edit')); ?>?id=<?php echo $value->getId();?>'" /></td>
					<td>
						<a href="">
							<img src="<?php echo $view->escape($view['assets']->getUrl('images/admin/hr.gif'));?>" width="16" height="16" alt="" />
						</a>
					</td>
	
					
					<td class="last"></td>
					
				</tr>
			<?php } }?>
				<tr>
					<td class="last" colspan="7"><?php echo $paging;?></td>
				</tr>
			</table>
		
		</div>
	</div>

<!-- ================================================================================================================== -->
<?php $view['slots']->stop() ?>